#include"Mystdio.h"
#include<unistd.h>
#define myfile "test.txt"
int main(){
    _FILE*fp=_fopen(myfile,"a");
    if(fp==NULL){
        return 1;
    }
    const char*mesg="hello world\n";
    int cnt=10;
    while(cnt--){
        _fwrite(fp,mesg,strlen(mesg));
        //fflush(fp);
        sleep(1);
    }

    _fclose(fp);

    return 0;
}
